package blogger.client;

import blogger.client.ui.panels.AnyTwitsPanel;
import blogger.client.ui.panels.SlidePanel;
import blogger.client.ui.panels.TwitInputPanel;
import blogger.client.ui.widgets.TwitView;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.ScrollPanel;
import com.google.gwt.user.client.Event;
import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.ClickEvent;


public class Blogger implements EntryPoint {
    private HandlerManager handlerManager = new HandlerManager(null);
    private TwitInputPanel twitInputPanel = new TwitInputPanel(handlerManager);
    public void onModuleLoad() {

        RootPanel.get("input").add(twitInputPanel);
        AnyTwitsPanel anyTwitsPanel = new AnyTwitsPanel(true,handlerManager);
//        anyTwitsPanel.sinkEvents(Event.ONCLICK);
        RootPanel.get("twits").add(anyTwitsPanel);


    }
}
